#pragma once
#include<iostream>
//#include "List.h"

class Point
{
	double m_x, m_y;

public:
	explicit Point(double x = 0, double y = 0);//constructor
	void GetAll(double& x, double& y) const;
	void Set_All(const double x, const double y);
	
	bool operator==(const Point&) const;
	bool operator!=(const Point&) const;
	bool operator>(const Point&) const;
	bool operator<(const Point&) const;

	//friend class Rect;
	friend std::ostream& operator<<(std::ostream& os, const Point& point);
	friend Point& operator>>(std::ifstream& is, Point& point);
	/*friend Point& operator>>(std::ifstream& is, Point& circle);*/
};

std::ostream& operator<<(std::ostream& os, const Point& point);
//Point& operator>>(std::ifstream& is, Point& point);
bool Negative(const Point&);